Another way to store keys in file