Caching role permissions SQL query
Small simplification