cache_lookup may change cn_flags, so have to check that value