fix mem save/restore size with clientcache