[LoopAccesses] Cache the result of canVectorizeMemory