Improve HMAC and PBKDF2 performance