Avoid memory issues on get_modules by processing on the fly