How does prolonged undertrial detention under laws like UAPA affect the justice system and individual rights in India?

A Delhi court acquitted two individuals booked under UAPA after they spent eight years in jail. I want to think about the broader implications of such long detentions without conviction on justice delivery and civil liberties.