I noticed that you use action=query with both generator=prefixsearch and list=prefixsearch.
IIRC when we looked at this (it was when we looked at the way some API consumers generates their requests) we noticed that it generates 2 prefixsearch queries on the backend. I think this adds unnecessary latency.
@dcausse -- discovery mailing list
This is correct. The additional parameters from the API call are unnecessary and can be safely removed with no adverse effects.