optimize constant memsets