Reducing need for build tree traversal