Get rid of large stack array in rd8x8_c()