Optimize upr ack message

Little restructuring of the code and added the stats also.

Change-Id: Iaa4b25ba23c8beea33facd2db9fa2de0fbf7ba79