Optionally generate and use expansion files.