Harden cache hash algorithm