added parameter matching to model caching