use redis and cached_authentication_middleware to reduce the number of db queries on each request