Cy is right on target - the word "mandatory" doesn't have as part of it's definition words like "almost", "part of", "a little bit" or anything similar. If the sentencing for a crime says MANDATORY, that's what it means. It's not up to the judge to be nice, or lenient, or take into considerating that you are a Knight of the Round Table, or how many times you've helped little old ladies get across the street, or that you're on the verge of discovering a cure for cancer. If you are convicted, you are looking at 10 years - MANDATORY. The factors you mention MIGHT mean that you get the minimum possible, but BY LAW it cannot be LESS than the MANDATORY minimum. Period.

Note too that your INTENT in committing the crime is irrelevent - the crime is the possession - NOT the reason. Even in states with a "Romeo clause" for statutory rape, like here in Florida, possession of sexually explicit materials that include images of minors will land you in jail - even if actually having SEX with a person of the same age won't.