Optimize chaos scoring in decoder for speed