Cache anonymous user id on the user object, so that queries aren't made many times over during module rendering