Factor out keyFileName stuff, not necessary