CURL optimization