Added buffer allocation suggested by Intel.
Added Intel switch optimization.