Performance improvements around value traversal