caching array of models to disk