micro-optimizations for better compression