You have it backwards. The cells are adjacent to the courtroom. The cells are for day use only, for prisoners whose court cases are being heard that particular day. The prisoners are then taken back to Soi 9 or Nong Plalai Prison, or the Soi 5 Immigration cells every evening.