Reduce some overhead by checking for equality