D-modules and finite monodromy