I'm thinking ChatGPT can probably do a lot of the heavy lifting in this cleaning step, have you considered integrating your app with OpenAI's API, or perhaps an open model like CodeLlama?
If you can afford to run in the cloud, you can often afford 2-3 times your max capacity in a data center. People ended up in the cloud because it was less expensive. Now that the demand for data center space has decreased, running bare metal is less expensive by a large margin.
Combine that with Kubernetes and Harvester, you can basically have your own cloud at a fraction of the cost. Now you just need actual sys-admins instead of AWS experts ... and they cost about the same.
Why's there so much demand for cloud and, despite empty DC spaces you pointed, there's no demand to fill it?