Preventing costs is better than cost optimization