Revert "Dont's serialize when getting stuff from the cache."

This reverts commit 6950d49fabc011a6070e6690b92085c479da6451.