cache hashing function improvments