Using optimized packet factory