Perf boost for sanitize()