How can I optimize my datapack ?

I have created a datapack, but it run with a mean of 60ms. I've try to separate the tick file in subfile. Try to avoid the utilization of execute if entity. but I out with idea on how to optimize it
Continue to help post