supports re-initializing key on app startup