store key_hash instead of key and key_len