Eliminate call to malloc