\timing on
WITH data AS (
  SELECT (repeat('1234567890123456789012345678901234567890', 1024*1024))::bytea as data
)
SELECT sum(length(encrypt(decode((g % 10)::text || '0112233445566778899aabbccddeeff', 'hex'), data, 'aes-cbc'))) from data, generate_series(1, 1000000) g;
