Optimizing file structure