Where are the collapsed/folded states of lists and headings stored?

Where are the collapsed/folded states of lists and headings stored?
I was expecting to find them tucked away in the .obsidian folder, but they are not there :confused:

Context: I’m generating programmatically lots of markdown files which are better consumed folded. I wanted to collapse them programmatically prior to consumption. I’m aware of the “fold all headings and list” command, but this amounts to pushing the problem on the end users. Also aware of the “Creases” plugin, but it does not seem to be able to preemptively specify a default folded/unfolded state (and anyway, I’d rather have 1 less plugin).