Use onrun handler to perform memory_set.