optimizations for very small sizes