I would privatize this function for now.  add leading underscore to file name.
Mainly to tell users that might find this, to not rely on it as part of the public functions.
I'm not sure this fits better in base or in tools and maybe we want to move it. For now base sounds fine as we have the optimization also here.