Optimizations regarding Rectangle.