Rework LRU hash logic.