Per-layer metadata in Photoshop CC

I’ve been trying to find info on this but haven’t found any real official information on it. Is this even possible or are all metadata still stored on a per-file basis?
If this is possible, could someone post or link me to some code examples?