Default [Q] Task Priority for Torch App in CM

I notice the torch app or the torch shortcut in CM won't work for some time like during initial boot up or when there is some background task before notifications would show up. Some time this lead to delay of 1 min before the camera flash light turns on.

However, there is no such problem when using other 3rd party torch apps. Is that a bug in CM or just the torch app is given a lower priority to other task?