reduce the amount of loop and use native functions
reduce the amount of loop and use native functions

Closes GH-111

Signed-off-by: Rachman Chavik <a5eec017e6795cc98c95620aceb4771be6f42eca@xintesa.com>

rakeshtembhurne/croogo,delkyd/croogo,cvo-technologies/croogo,delkyd/croogo,rchavik/croogo,xintesa/croogo,xintesa/croogo,cvo-technologies/croogo,Wouter0100/croogo,cvo-technologies/croogo,Wouter0100/croogo,delkyd/croogo,Wouter0100/croogo,damien-biasotto/croogo,damien-biasotto/croogo,rakeshtembhurne/croogo,rakeshtembhurne/croogo,xintesa/croogo,rchavik/croogo