Further hash function optimizations.