We could evaluate speeding up the MLST checking by acknowledging the fact that not all MLSTs are possible for all serotypes.
Investigating this will likely require unifying the multiple SQLITE databases into one and including a table that indicates the nestedness across taxonomic levels.