faster acl query

These changes will speed up all queries that check acl permissions, especially when you have added extra user roles and a lot of nodes/pages. 
(Eg: project with 5000 NodeTranslations and 7 user roles: 400ms -> 20ms)