The grand jury has power, and it is its duty, to inquire into all public offenses committed or triable in its county, and to present them to the circuit court by indictment. A grand jury is entitled to free access at all reasonable times to public prisons, and to the examination, without charge, of all public records in its county.
SDCL 23A-5-9