Every person convicted of a crime or held to bail to keep the peace may be liable to all the costs of the proceedings against him or her, including, when tried by a jury in the superior court or before a committing magistrate, a jury fee as provided for in civil actions for which judgment shall be rendered and collected. The court shall not order a defendant to pay costs, as described in RCW
10.01.160, if the court finds that the person at the time of sentencing is indigent as defined in RCW
10.01.160(3). The jury fee, when collected for a case tried by the superior court, shall be paid to the clerk and applied as the jury fee in civil cases is applied.