Marshal Ruby objects before placing in the cache (TORQUE-941)