code: def _plaintext_data_key():
      '''
      Return the configured KMS data key decrypted and encoded in urlsafe base64.
  
      Cache the result to minimize API calls to AWS.
      '''
      response = getattr(_plaintext_data_key, 'response', None)
      cache_hit = response is not None
      if not cache_hit:
          response = _api_decrypt()
          setattr(_plaintext_data_key, 'response', response)
      key_id = response['KeyId']
      plaintext = response['Plaintext']
      if hasattr(plaintext, 'encode'):
          plaintext = plaintext.encode(__salt_system_encoding__)
      log.debug('Using key %s from %s', key_id, 'cache' if cache_hit else 'api call')
      return plaintexf _plaintext_data_key():
      '''
      Return the configured KMS data key decrypted and encoded in urlsafe base64.
  
      Cache the result to minimize API calls to AWS.
      '''
      response = getattr(_plaintext_data_key, 'response', None)
      cache_hit = response is not None
      if not cache_hit:
          response = _api_decrypt()
          setattr(_plaintext_data_key, 'response', response)
      key_id = response['KeyId']
      plaintext = response['Plaintext']
      if hasattr(plaintext, 'encode'):
          plaintext = plaintext.encode(__salt_system_encoding__)
      log.debug('Using key %s from %s', key_id, 'cache' if cache_hit else 'api call')
      return plaintext
docs: Return the configured KMS data key decrypted and encoded in urlsafe base64.
  
      Cache the result to minimize API calls to AWS.