def get_platform_folder_to_keyword_map(ctx):
    """
    Get the cached map of platforms to their PAL platform folder and keyword, so we can
    attempt to search for platform-specific 3rd party fragments to combine with the input config file
    :param ctx: Context
    :return: Map of platform names to their keyword
    """
    try:
        return ctx.platform_folder_to_keyword_map
    except AttributeError:
        working_map = {}
        target_platforms = ctx.get_all_target_platforms(False)
        for target_platform in target_platforms:
            assert 'platform_folder' in target_platform.attributes
            assert 'platform_keyword' in target_platform.attributes
            platform_folder = target_platform.attributes['platform_folder']
            platform_keyword = target_platform.attributes['platform_keyword']
            working_map[platform_folder] = platform_keyword
        ctx.platform_folder_to_keyword_map = working_map
        return ctx.platform_folder_to_keyword_map