Assuming power on self tests to disable non-functional blocks.
After the wafer has been produced, just do a test on the disconnection logic (not the internal functionality of the block) and if some disconnect logic fails, burn off the bad block data, clock and power connections using a laser.
This method should not take too long compared to cutting a wafer into chips, testing each individual chip, skipping bad chips and packaging good chips into packages.