I am a bit sceptical of this optimization.  Was it slow without it? How well does it cope with queries like `*lib*`?