Optimize file compilation