Optimize ARM AWSEM algorithm