I tried doing switch.to.company() but there is no improvement.
I also tried to debug the code. One thing I found while debugging is that while trying to check the value of check box (see if it is selected or not) using get.object is taking a bit more time.
Anyone else faced similar issue ? Please help.