A prison boss is facing trial, with prosecutors telling judges there are nearly 1,000 victims in the case.