Optimize acl commands