Path optimization in stream-based overlay networks