complete packet entities optimization