optimize and strip static builds
logging is not thread safe