Remove unnecessary class loading in file scanner