Added caching for onlineSearchMode