Terraforming Infrastructure Optimization