New public API (PTR_STORE_AND_DIRTY) to simplify store-and-dirty operation