Memcache: fix key generation