Improve encryption support callback to retrieve encryption key to_dict() should automatically redact all encrypted fields