Optimize file size and compression