Optimized memory access by using stride pattern