I don’t see that being necessary, though? Literally the only place were you don’t have a note after that you can attach the grace notes to is with the last note of the barline. In those cases you can still attach to the first note of the next bar and toggle the “before barline” property. Job done.
Once you do that, do come back and let us know your findings.
@rodrigoruiz1988 I will do that. It would be an informative exercise.