Fix OOM while allocating buffers in the direct memory

Restored old dimensions except request header