Optimized contracts code.