When a court sentences an adult convicted of violating section 609.322 or 609.324, while acting other than as a prostitute, the court shall impose an assessment of not less than $250 and not more than $500 for a violation of section 609.324, subdivision 2, or a misdemeanor violation of section 609.324, subdivision 3; otherwise the court shall impose an assessment of not less than $500 and not more than $1,000. The mandatory minimum portion of the assessment is to be used for the purposes described in section 626.558, subdivision 2a, and is in addition to the surcharge required by section 357.021, subdivision 6. Any portion of the assessment imposed in excess of the mandatory minimum amount shall be deposited in an account in the special revenue fund and is appropriated annually to the commissioner of public safety. The commissioner, with the assistance of the General Crime Victims Advisory Council, shall use money received under this section for grants to agencies that provide assistance to individuals who have stopped or wish to stop engaging in prostitution. Grant money may be used to provide these individuals with medical care, child care, temporary housing, and educational expenses.