Implement efficient packing without cross-contamination attention Former-commit-id: ac382cc9fe4ec483658fd54f07f9a123788ce1b1