[Locator] Refactored Ketama key generation algo.