XRENDERING-350: Improve macro transformation speed