TLS: split key log contents processing from file reading