memcache optimization, data cleanup