Tips on writing efficient code for Arduino

I guess the lcd health check should also be locally scoped?

Only if it is local AND static.