// Using the heap here to avoid an unnecessary static memory allocation. Also too big for the stack.
// Using the heap here to avoid an unnecessary static memory allocation. Also too big for the stack. TODO: Make this a single malloc. Also doesn't need to be aligned.