[Python-ideas] Fixing and improving statement caching in sqlite3