For every logged-out request, authenticate_request
does a User query with username None, which is pointless and never finds anything.
It also calls M.User.anonymous()
which maybe could be in memory instead of a database lookup? Could speed up lots of other calls to anonymous() too.
db/8409
merged