added support for api_key in encrypted data bags