Any person designated by the department shall have the right at any time to enter upon the lands and inspect and examine the structures, works, and mines situated thereon, and shall also have the right to examine such books, records, and accounts of the lessee as are directly connected with the determination of royalties on the property under lease from the state but it shall be unlawful for any person so appointed to disclose any information thus obtained to any person other than the departmental officials and employees, except the attorney general and prosecuting attorneys of the state.