minor CPU optimizations