Utlity function for keystore checking and setting value based on info cached in file by default