Network infrastructure optimization