optimize SDL.offsets