Fast and stable bitmap and memory operations