this code
var gDeviceSetting = SYS.getDeviceSettings();
consumes almost 0.8kB memory (on mostly devices it's about 1% of all memory)...
so, if I write instead of it this code
var gLastPhonConnStatus=SYS.getDeviceSettings().phoneConnected;
there wont' be memory peek and only few bit will be retrieved?