Stroke optimization and documentation