Change query cache keys from String to BytesRef