Split retrieval of backup keys into a separate file.