Factor out Memcache updates