(b) Unless the adult concerned is receiving adult protective services or unless there are pending proceedings with regard to the adult, the records maintained by the adult protective services agency shall be destroyed thirty years following their preparation. A circuit court or the supreme court of appeals may subpoena such records, but shall, before permitting their use in connection with any court proceeding, review the same for relevancy and materiality to the issues in the proceeding, and may issue such order to limit the examination and use of such records or any part thereof, having due regard for the purposes of this article and the requirements of the litigation as shall be just.