Lightening the Java handlers to minimize Main JS Thread blocking