Disable inlining on Memory for C++, for now
Reduce stack allocation