It makes easier to validate its safety.
In this function, the use of `memcmp` is the only one place to be focused on.
If we mark the function itself as trusted, we need to validate whole codes for its safety.

And I think the overhead of an additional function call does not matter because it will be inlined.