Read acl optimization is available for PostgreSQL and H2
It is faster for filtering allowed documents but it has a small extra cost on write operation (time to save the read acls per document)
An aclOptimization enable/disable flag at the repository configuration will help to tune mass import.