We got well over $80k into manpower on optimizing our self-hosted app for resources so that we didn't have to tell less than a dozen big customers to upgrade their hardware before people stopped laughing right in my face for suggesting we just buy them some new rackmount equipment as a gift...
That project died the following year, and I believe the opportunity costs of that work were substantially responsible for the demise.