#4141 Make session cache objects serializable