Check the files first, to avoid an initial recompilation.