reuse boolean results rather than recomputing them