Safekeeping states that when a jail is ill-equipped to house someone who's mentally and physically ill, or have behavioral issues, that person can be transferred to a prison. Upon arrival, policy dictates placing them in Solitary Confinement, for "Safekeeping".
This law greatly effects juveniles as they are unable to be housed with adults. An investigation done by the Tennessean and the Marshall Project, showed reports of teens being held for as many as 300 days in Solitary while awaiting trial.