We do unfortunately send people to long times in jail (sometimes over a decade) before their cases come to trial in the USA. And jails in the USA generally have vastly worse conditions than prisons (as they are "short term" facilities).
CECOT is a whole different beast altogether, though :(
You have to waive your right to a speedy trial. You cannot be held for years without trial