docs: def crypto_config_from_cache(materials_provider, attribute_actions, table_info_cache, table_name):
      """Build a crypto config from the provided values, loading the table info from the provided cache.
  
      :returns: crypto config and updated kwargs
      :rtype: tuple(CryptoConfig, dict)
      """
      table_info = table_info_cache.table_info(table_name)
  
      attribute_actions = attribute_actions.copy()
      attribute_actions.set_index_keys(*table_info.protected_index_keys())
  
      return crypto_config_from_table_info(materials_provider, attribute_actions, table_info)