Make specialization of SQLAlchemy caching easier