Simplify persist code by using Stdio.read_file()