Better buffer management in SD card