Smart specializations