Optimisations to make rebuilding the search index much quicker.