SQLite: reduce memory footprint for packing