Turn on -O4 since it seems to fix the weird performance issues