Optimizing high locality memory references in cache coherent shared memory multi-core processors