The Hidden Costs of Post-Deployment Security Fixes and How to Avoid Them