Death to the pickle

We should replace all things pickle with a better format, e.g., a gzipped JSON file.