improved optimization of lazy module