@whitequark I find that RasPiKey are handy for this. They cost a little bit more than an SD card, but they are much more durable flash. They do however stick out of the SD card slot quite a bit.
I use them in my PiHole boxes after I got bored of the SD cards dying all the time.