Dozens of officers have been arrested at facilities statewide, accused of profiting from the sale of contraband in prison and having sexual relationships with inmates.