At present, SmartThings offers very little off-line processing, although they have said they would like to do more in the future.
Right now, the only code that runs local is SmartLighting and some parts of smart home monitor. And then only if all of the devices in that particular automation are also eligible to run locally, at least for a few hours until the hub battery dies. And even then the mobile app on your phone does not run locally. Your switches probably will run locally.