Revert "libmpa: move some static allocations to stack"

This reverts commit c677ac9cd1886bed0e531d45b4272d08abadab87.