optimizations for the release build