Codec for testing that never writes to disk.