memmap callback in robust optimization