def read_file_keys(fname):
    """
    Reads the given file's list of file keys and returns them as a set.
    """
    with open(fname, 'r') as infile:
        fkeys = infile.read().split('\n')
        return set(fkeys)