Optimal control problem with comparatively large delay