These variables used GrfProcessingState, which is only valid while loading GRFs, after which they always point to the last loaded GRFFile.