Simple RNA viruses efficiently encapsulate their genome into a nano-sized protein shell-the capsid. Spontaneous co-assembly of the genome and the capsid proteins is driven predominantly by electrostatic interactions between the negatively charged RNA and the positively charged inner capsid wall. Using field theoretic formulation we show that the inherently branched RNA secondary structure allows viruses to {\sl maximize} the amount of encapsulated genome and make assembly more efficient, allowing viral RNAs to out-compete cellular RNAs during replication in infected host cell