Better performing matrix materialize