normalize key length with hashing