move caching to gmpy_cffi/cache.py; add get_cache, set_cache