Like I said, I could be wrong. If the code you’ve added is slower then I’d remove it. I’m not 100% sure of the entire sequence of events and Elliot has done a pretty good job of optimizing ACF over the years.
Whenever I’m working on speed optimization I use this function in the footer of the page https://codex.wordpress.org/Function_Reference/get_num_queries. The only real improvements in WP you can make is by reducing the number of queries so if that what you’re trying to do then it’s always a good idea to see how many you’re doing.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users