I am ok with something like `_compiled_patters` at the module level. It is not a pattern I particular like, but it is very common in django and django extensions.

Django guarantees that `django.conf.settings` has already been imported once before importing any other module.