add memcache optimization