Add lazy compile for production