Faster physical packing and jiggling

See email for description of changes.