You use the set-persistent macro to make context fields persistent.
This is useful for making data persistent beyond one request/response cycle.
set-persistent 'context-field' 'X'