Fix memcached not able to find query and hangs