Dramatically speed up hashing using threadlocal buffer