Minimalize the number of requests to build remote tree.