fixes objects being added to the cache as strings

raw cache usage loses the class of the stored object which is what we are using to indicate that the value is already compiled json. this fixes that issue.