Very minor performance optimizations

This should be self-explaining.