I know this is mostly existing code... Still, adding a comment here about what current_lookup and current_prefetch mean would help readability a lot. Maybe a really short example in the comment, too?