How to lock the visibility of a folder in the outliner?

I usually hide all folders I’m not currently working on, only to have them all visible next time I open UE, and then manually hiding them every time.

Is there a way to keep them hidden across sessions? maybe some plugin or other method?