That doesn't seem like a problem - that seems like a feature. Maybe "The Ones Who Walk Away from Omelas" just stuck with me, but a just society doesn't sacrifice the prosperity of a few for the "greater good".
"Justice" is difficult enough to define that many books have been written about the topic. Personally I don't find it just to let a small number of individuals transfer wealth from future generations to their current self.