Reducing latency overhead caused by using LDPC codes in NAND flash memory