Remove use of unsafe that does not result in a measurable perf improvement.