Acting as a Corporate Finance Specialist, evaluate the cost of capital for a manufacturing firm considering new investments. Calculate the weighted average cost of capital (WACC) and provide recommendations on how the company can optimize its capital structure to reduce costs while minimizing risks. Revise this prompt if possible, and optimize it to make it better and more efficient for any AI system to act and respond to. If possible run your optimized version.