Caching sidebar query.