avoid creation of temp arrays in dct routines