Performance improvement on hash hmac, passing strlen to out of loop