Does anyone know of a command that might do something like this? Or do people think that commands like these would be helpful at all?

I often find I’d like to quickly hide or show locked objects that happen to be on different layers, or the same layer, but I don’t necessarily want to hide the active objects I’m working on, only locked objects.

Just a thought and would like to hear other’s thoughts on the matter.