Load modules and set readtables only once

Don't re-setup modules and readtables for each file to prevent the module cache from breaking the plugin when processing multiple files.