Smart data service layer