more memory efficient ROI handling with sparse matrices
more memory efficient ROI handling with sparse matrices