Any competent criminal defense attorney will get his money on the front end. Win or lose, defendants won't pay after the trial is over.