I have an ASP.NET Core 3 website that is frequently running out of memory on Azure.
One of the heavy-lifting (but frequently used) functions is to generate re