Improve layout of transformation matrix.