Cached version of fs.writeFileSync