Optimizing XBMC module