Use buffer block for encoding double values