Use raw MemoryRegion to speed up graph generation of large arrays.