More hash optimization

Ensure ptr is aligned before optimized update loop.