read, write, encode and decode now support constant folding