Improvements in encoding speed