Simplify persistent_dict to only use pickle.