minor performance/power optimizations