Improvements to Memcached support