It's kind of silly to write this file to disk then read it back in later (and then get rid of some keys before doing the comparison). Just a JS object literal with the keys that we keep seems better. 