import struct
import pickle


def indexed_pickler_load_keys(path):
    """
    Return the list of keys in the indexed pickle
    """
    with open(path, "rb") as f:
        index_len = struct.unpack("Q", f.read(8))[0]
        return pickle.loads(f.read(index_len)).keys()