LayoutGrid: name or ID?

We have a plugin that creates a custom grid for frames using custom logic. One problem however is if we need to re-run the plugin on that same object the LayoutGrid type has no name or ID so we cannot reliably reference the previously generated grid to overwrite or remove.

Any suggestions on how to accomplish this? Or is this a feature Figma will need to add and we’re stuck for now?

Maybe use grid styles? Or save the grid data to the pluginData storage on the node, then compare it.