better duplicate protection using memcache