A huge jail building programme has resulted in thousands of excess places