Misc optimizations.
Export public functions as blockhash and blockhashData.
Merge pull request #1 from commonsmachinery/optimizations

Misc optimizations.