Note to self: add a comment to explain why this optimization is necessary