matrix: cache the last `gamnit_euler_rotation` matrix created