SMS dit: Optimal domain and integral extension of operators