load keys in a background task