fixed caching to cache json strings. This makes the cache much more stable. orm can create json objects for caches