Smart boxing optimization

Boxing optimization after inlines