Share prefill in sequence packing (#5887)