Added a cache on top of BerkeleyDB, along with parameters to Experiment.