Eh, economics of prisoners aside, I have a hard time believing the lifetime output of slave prisoners would exceed the amount of effort that went into *building* that prison in the first place, regardless of whether you used prisoners or droids to build it with.
Then again, Star Wars economics...