I'm developing a Google AppEngine application and trying to figure out what is the best way to check whether an user is authenticated. I use standard authentication mechanism provided by AppEngine, but in the context of my app the user is authenticated only if he/she is already registered within the app. So I need to check if there is a record in the datastore for the user for every request. But I'm a bit concerned about performance.
Is there a better way to deal with this problem? I know it could be improved keeping user records in memcache. But I wonder if there is a better approach?