Cache option flags and check them first.