We have groups clipping that allows to use whatever stack of layers and smart objects in such group as a kind of a mask to layers above. It's cool but it makes my typical layer stack so huge and so complicated I sometimes couldn't figure out a thing in my own files couple weeks after.
What I offer is same finctionality basically , just interface re-design. Just instead of a clipping group it would be a mask assosiated on the fly from a certain layer composition result saved in layercom panel.
IMO it would be much more elegant and easy to read solution .