Optimize reachability topology builder