title: Chrome Extension: persist variable in background script without using storage API
body: <p>My background script handles sensitive data that shouldn't be stored. The data needs to persist for at least while the browser is still running. I can't just store it in a variable cuz the background script (i.e. service worker) will potentially terminate before I need to use the data.</p>
  <p>The <a href="https://developer.chrome.com/docs/extensions/reference/storage/" rel="nofollow noreferrer">docs</a> literally say it's not a good idea to store sensitive info with the <code>storage</code> API because it's not encrypted. So what can I do?</p>