Task: optimize == and != _hash_key comparison