Implement the hashing scheme in an attempt to speed up the "slow" case in