Optimal Spending on Cybersecurity Measures (AI and Governance)