with linux and kde you could create an encrypted kde vault that’s mounted to your librewolf profile folder (and you can change librewolf settings to save history, cache, etc.)
if you don’t want to use kde, it uses cryfs in the background, which has a cli tool as well. unmount the volume after using the browser and profit i guess, though i do agree with the other commenter that this doesn’t make much sense in my head.
it is set into the concrete/stone floor, which is a trait of storm drains