Got rid of repetitive json file reads