Make some optimizations on R and Q.