Re-apply patch for TEZ-1632.  Accidentally reverted as part of TEZ-1176 commit.

(cherry picked from commit 92b6b6b6722579eb0d29b43c3174a5c913f303a8)
TEZ-1596. Secure Shuffle utils is extremely expensive for fast queries (Gopal via Rajesh Balamohan)
(Cherry picked from commit f801fa01d81ed0c0b7c1b39fbd551c5f86a8dda0)
TEZ-1712. SSL context gets destroyed too soon after downloading data from one of the vertices (Rajesh Balamohan)
(Cherry picked from commit e225b5a4ce2bc0fae3f9ed9b6ac213ac8d2166e5)