Efficient media management and playback