You could try following workflow - hide all objects that needs to be rendered separately, render the scene, add shadow catcher to material override, unhide previously hidden objects and add them to override exclussion list. Set shadow catcher to for compositing mode, add previous render as its backplate and render again. This probably won't work with highly reflective objects, like chrome spheres, but with more ordinary materials, that could do the trick.