Cache search result popup menus to speed up page refresh and prevent doing too many computations