_In which I delve into the jQuery source because the docs don't actually describe how the data is stored_

What makes you say my current approach writes to the DOM? It's not like it's adding a physical HTML attribute on the tag itself.