More than 8,550 inmates are currently held in Scotland’s prisons, well above the design capacity of 7,805.