[VLC] several optimizations