how to optimize city infrastructure