only optimize files that meets our need