move key storing to own file so not repeated on every run