Consolidated reading credentials json files in utils