optimize the load files.