Minor performance fixes for subtitle loading