Using json because gob.NewDecoder is very slow!