Any agency subject to this article shall control and at all times be the owner of its records. When a state record is required by law to be treated in a confidential manner and is an essential state record, the agency, in effectuating the purpose of this article with respect to such state record, shall protect its confidential nature.