Store encoder data to file, better mving