Make closing and reopening the session much less common for single-threaded runs of test/format, where it involves closing and reopening the file, which makes some runs 100x slower than others.