Refactoring 'store.select()' & worker fn to utilize indexes