If you're talking asset forfeiture, it can be part of a dispo (plea bargain).
In
most cases, the Deputy District Attorney decides how much time the defendant does.
If a Judge doesn't like the plea bargain, the case can usu be forwarded to another court, where that Judge will accept the DDA's offer.
The DDA calls the shots,
not the Judge in the DISPO of most cases.
The Judge can't change the charge & usu can't 'strike' a strike -- the DDA can.
A DDA can also screw up a Judge's court by setting every case for trial, or by papering that Judge on every case.