Only build optimize file in non-debug mode or when --force flag is used.