Changing consistent hashing to search backwards from the primary for secondary and tertiary