Pbkdf2 speedup

Increased the performance of PBKDF2, needs backport to 1.4+