Speed up malloc a bit with on_chip_cast
tune merge