Functions that allow memcache and local caching of appengine/datastore calls.