make safe tail calls faster