Backing AO seperate from the light pass

Is it posible to render the AO seperate from the light pass, i have a object that i want to use for my AO bake but not my light bake (the terrain cant cast shadow because that will mess up the POM effect) but without cast shadow the AO is only there dynamic and not baked… I need the baked for my material PrecomputedAOmask

thanks