1. A method comprising: executing, by a redundant array of independent disk (RAID) stack, a first memory access routine; executing, by the RAID stack, a second memory access routine, the second memory access routine having different access timing characteristics than the first memory access routine; determining, by the RAID stack, a number of cache misses for the execution of each of the first and second memory access routines; and selecting, by the RAID stack, one of the first and second memory access routines based on the number of cache misses for further memory accesses.