CAS-1393: Memcached serialization fails when creating a proxy ticket

Update according to Marvin's code review