Revert "Removing addition of minSpareRows"

This reverts commit 824282f09189637ca91bb3d06c7a7ac522b27f88.