[Security][Acl] Reduce query size when Select ACL entries for many instances of the same Type at once
[Security][Acl] CS fix for commit: 3c3a90b9e5c78f89027169a33e80cfa76b6f6c62
merged branch stloyd/feature/acl_query (PR #6597)

This PR was merged into the master branch.

Commits
-------

d570dbe [Security][Acl] CS fix for commit: 3c3a90b9e5c78f89027169a33e80cfa76b6f6c62
3c3a90b [Security][Acl] Reduce query size when Select ACL entries for many instances of the same Type at once

Discussion
----------

[Security][Acl] Reduce query size when select ACL type is same

Rebased & squashed version of #6479.

ps. I was thinking that this could be done on _lower_ versions too, but was not sure =)