download implemented with memcache