Allocate runtimes on the heap rather than the stack.