cache documents while models executed. use a berkeleydb-ish setup if needed