All in semantic optimization