Test Optimizations, horribly kanged
Revert "Revert "msm: avoid stack frame exceeding the limit of 1024 bytes""

This reverts commit 42ed45699f96b637ffe7839c0524f9cb4e2d8a1c.