Magistrates and judges benefit indirectly from long trials