better check for compressed keys