Simplify newTempBufferE implementation.