logging failure in for_key_encryption