Temporary buffer implementation