Would work the same as
Package.[Set/Get]PersistentData
, with a callback parameter for the getter in which the data will be returned
This would allow to make the main thread breathe by not having to handle the .toml file reading and parsing