use implicit_upstreams together with rbtree to modify performance when upstream is not found in rbtree