Remove allocateDirect(), MAJOR MEMORY LEAK and pointless as we're wrapping streams here.