Dont'make lengthy ops in application callback function

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>