Model optimization at the time of upload