optimized markstoring