And then there's that demon on the other shoulder telling you "all C code is unsafe, so there's nothing wrong with it. How much could go wrong if you add a few lines with unsafe {} here for a slight optimization?"

Of course, the demon is sometimes right (I'll let the programming theologians sort out the implications of that). But beware of the temptation.