Improved query speeds in the library search widget