performance improvement in encap and decap action