I'll admit that caught my attention as well and is the main reason why I chose to look into this but now that I'm here I found this video very informative and a reminder of how if Americans travel to other countries its best to be careful as to not do anything to wind up in jails in foreign countries, this is totally unbelievable yet true.
El Salvador built the largest prison in the Americas last year in just 6 months and it has the capacity for 40k inmates. It was built specifically for the overcrowding. And FYI “the spiraling violence” was solved and El Salvador now has a lower homicide rating than the US and Costa Rica which was touted as the safest country in LATAM for years until now.