Draft: Try making textBeside_ strict in the third arg.
It seems we allocate of these thunks. Which are always entered (once). So just force them right away instead.
There is a tiny risk it makes things worse when we try to output a huge doc, which we now will sometimes compute in memory before starting to produce output. But might worth a try.