#4141 Make object cache serializable