There is an option in the properties panel, Render > Light Paths > Shadows that toggles "using transparency of surfaces for rendering shadows" for the whole scene.
I like to render architectural stills or short films. When I uncheck this option the rendering speed greatly increases, but some parts such as fences and curtains don't work very well, although the quality of shadows of trees, grass and so on is sufficient.
How is it possible to change this option per-object?