Ambient occlusion gives a dirty look

I have simple cubes making walls of a room, however the default ambient occlusion gives a dirty look especially in the camera edges. How to make it cleaner ?