Create empty file before optimization