DRY and use a constant for the test secret
Open an IndexedDB to store the secrets