Update and optimize files