Use bulk::malloc instead of static allocation