Finally optimized translate and scale in matrices.