Enabling the sheet_data matrix to be sparse