Smart content distribution