sanity check the key id; use a cleaner mechanism to build the key id from file name