Attempt to optimize time.Time marshal and unmarshal code