Use nap functions (and hence backend cache) for in_tree checks, which increases consistency and saves many expensive INTREE queries