Use indexes for batch processing