Patent ID: 8145768

Claim:
A network device for managing a network communication, comprising: an input interface for receiving requests and sending responses; a session cache for storing information for re-establishing an Secured Socket Layer (SSL) session, wherein the session cache comprises at least one cache lookup table; and a processor arranged to enable actions embodied by at least a portion of instructions stored in a memory, the actions comprising: receiving an SSL session identifier (ID) within an SSL handshake protocol for establishing with a client device, an SSL connection; performing a reversible exclusive-or operation on the SSL session ID and a pre-determined ID associated with the network device to generate an ID, wherein the generated ID comprises at least one of a cache line for identifying an entry within a cache lookup table, or a cache ID for identifying the cache lookup table; determining, based on at least a portion of the generated ID, a failure statistic associated with re-establishing an SSL session for the SSL connection; and tuning the session cache based on the failure statistic derived from the reversible exclusive-or operation performed on the SSL session ID.