add code for offline session replay acceleration