optimizations for integration and size