Read file once
Read file once

file_prepare reads the file into filecontents, then all functions just use
that variable instead of reading the file, reducing the overall IO load and
improving performance

Xenopathic/uptime-tracker