Note that with more memory, you also get more cpu cycles.
It’s worth to test for your ideal memory wise. In many cases, adding a bit of ram makes the request more expensive but due to the added cpu cycles, it finishes faster and ends up costing you less overall.