#ifdef mallocs of optimization buffers