@doncarr - yes, make a pull request, I suggested to be a new function so the lighweight version stays around and can be used by those that know it fits their needs.
FYI: `kamailio-sync` is an account associated with sr-dev mailing list just in case someone replies there, instead of using the github webforms for issues. In the above case, it was @juha-h responding on mailing list (as shown in the signature when expanding the dots at the end of comments).