Improve memory access patterns for reduction of index