Optimized for speed and size