faster querying for non-blocking functions