Split unit key parsing to unit_key.[hc]. Do not load the file twice (parse it when it is loaded for disc id calculation). Add error checking. Check unit key file header.