Optimisation to make handling incoming federation requests more efficient.