Avoid allocation in hashblocks.

Allocate temporary space in hash instead and pass it to hashblocks.
This slightly increases performance for short inputs.