I need to tag/embed a few hundred bytes of related data (saved settings for a script) in a PS layer, specifically an EPS SmartObject. To be clear, I just want my script to store & retrieve data in a layer while keeping the image as-is, don't want the data displayed. Different layers might have different data stored with each. Same idea as the "label' attribute of objects in InDesign scripts.
It's tempting to embed the data in the layer's name, but that could easily get messed up by the user renaming the layer, etc.