Plausible improvement to code. Cannot currently be tested because summa-indexing is offline.