That's a very important insight that, in many real applications, memory is the the limiting factor for performance.
We can work at a higher level.
However, the old salts who had to care about every byte are rightly horrified at the lack of frugality today.
If you are on a cloud, you should always consider using cloud native functions and services. Keeping your toe out of the lock-in is expensive :(