AuthBehavior optimizations to reduce number of queries.