Use VisitHelper instead of referring to globals in views.
Prison metadata gets stored in the encrypted link (state).
Prison metadata is retrieved from the encrypted link or added when missing.