Do not try to asynchronously write state to DB in read-only mode.