Fixed Memcached implementation