Optimize migration files