Don't send the incoming context to the server for get_thread_context, instead copy only the relevant fields of the return value on the client side.