Revert "Required AM memory is "amMem", not "args.amMemory""

This reverts commit 9975f13235c4e4f325df8419878b0977db533e5f.