Generalize the optimization to packed-info-insert.