shadow: improve bitmap update performance