Sustainable and effective decarceration (smart decarceration)