Can you cite a source regarding the couple you are referring to? I seriously doubt that they were sent to prison just for waving a flag and shouting something racist. There must have been more to it than that.
But setting that detail aside, I do agree that long prison sentences does very little to aid in rehabilitation and probably actually increases recidivism rates.