The simulation data-block file isn't used currently, and is unrelated to the current simulation caches. It would also be reasonable to declare the function in MOD_nodes.hh, but I went for keeping it together with the other more public simulation cache code. Pull Request: https://projects.blender.org/blender/blender/pulls/109967