Generate huge matrix for SPs containing