Export only locked layers or export only unlocked layers

Sometimes I have a UI frame created in several layers, and I have some sample text and icons that go on top of that, also in several layers.

When I export, would be nice to export only “locked” or “unlocked” layers, this way, I can mark which layers I don’t want to export instead of making 15+ layers invisible everytime I export. What do you think?

image