acl: remove subtree calculations at build stage