Unifying redundant memcache calls