various optimizations for debug=false and compression enabled