If it runs fine on a iPhone 5, it runs better on an iPhone 7.
You are not writing drivers, you don't need to optimize anything.