Any defendant entitled to counsel pursuant to, and amendments thereto, shall pay an application fee in the amount of $100 to the clerk of the district court. Any defendant entitled to counsel in a proceeding for a violation of a condition of release pursuant to , and amendments thereto, shall pay an application fee of $100 to the clerk of the district court. Such fee shall be paid regardless of whether the defendant has paid application fees pursuant to this section in any other proceeding. If it appears to the satisfaction of the court that payment of the application fee will impose manifest hardship on the defendant, the court may waive payment of all or part of the application fee. All moneys received pursuant to this section shall be remitted to the state treasurer in accordance with the provisions of , and amendments thereto. Upon receipt of each such remittance, the state treasurer shall deposit the entire amount in the state treasury to the credit of the indigents' defense services fund. If the defendant is acquitted or the case is dismissed, any application fee paid pursuant to this section shall be remitted to the defendant.