Factoring of matrix read/write.