Optimize file for globals