PG_BYTEA seems to be working nowadays, and uses much less memory than our alternative...