add prototype implementation of caching compiled stanmodel