prepare_profile_cache returns the prepared configuration object