Complete the read function to return also the cached byte from the lwip