fix to allow cache per model

fix for issue #3 

Caching does not respect Model, thus unusable #3