An improved way of handling calls to App Engine's Datastore and Memcache