[fix?] try to optimize the memory for input data.