Funny how often "there are optimized functions for that" really means "I haven't thought through what the optimized function actually has to do"