Don't Just Upgrade, Optimize: Avoiding Technical Debt