The Optimal Design of Conservation Investments