C optimizations and updated benchmarks