If you have N files, then that's only 3^N builds to test out each possible combination of O, O2, and O3. That shouldn't take too long. /s
http://stderr.org/doc/acovea/html/acoveaga.html