replace dictionary with memcache