Memory access of any type is often the slowest. This might just be a general law of computing regardless of level of the stack at this point.
In the serverless world, memory accesses are the most expensive with writes being the most expensive of all (where expensive == slow AND literally expensive)