Support reading key from file