Prepare Playlist unloading played songs

Why is it that sometimes my tracks stay in the prepare playlist after i’ve played them but other times they disappear ? where is the preferance switch for this please?