add a note about thread safety and caches to the docs
use flint_cleanup() everywhere