save track pointer to file

Is it possible to save track pointer (from renoise.song.tracks[]) to document and restore it from file after restart renoise? For example - i need to save (via renoise.documents.create()) a track mute states into file. In my next sessions (on this file) i need to restore mute states for track automatically. Is it possible?

local my_doc=renoise.documets.create(“MuteStates”)

for idx,trk ipairs(renoise.song.tracks)

my_doc.add_property(trk,trk.mute_state)

end

how i could to restore state?

Thank you