How to Use SQLAlchemy Magic to Cut Peak Memory and Server Costs in Half