Gaia optimize

Test for |make GAIA_OPTIMIZE=1|