Optimizing investments in national