I do agree. I was wondering whether we can push them all to server or not. I did some test using the new code. The performance does not improve for the first page. I was using my local esp connected with dataland (150k files). The two function calls at  line 11084 and 11085 took 12 + 6 minutes. I wish I do not need those two function calls -- after this line, just call queryRoot()/getElements() and pass iter to sortElements(). Is it possible?