Save NodeClient variable to disk

Hi all,

I have been modifying the source code to accomodate some custom features that I would like to have. In doing so, I have added some new class variables to NodeClient. Currently, these variables do not persist over different sessions of elasticsearch. Is there any way to save the NodeClient's state on disk before shutdown and read it back on startup?