model caching
Merge pull request #417 from shmax/implement-model-caching

model caching