import ujson


def load_config(cfg_file="config.json") -> dict:
    """
    Loads the configuration from the given cfg_file.

    :param cfg_file: Config file containing the configuration JSON.
    :return: dict containing config parameters
    """
    with open(cfg_file, 'r') as json_file:
        return ujson.loads(json_file.read())