performance improvements for dottie.transform