HMAC & PBKDF2 optimization