Voice activity detection and keyword spotting system optimization