Enable in-memory caching for Cython