In any case in which the court having jurisdiction of the case determines that the collection and payment of the sums provided for in Section 45-36-232.23 will impose a definite and significant financial hardship on the dependents of the prisoner involved, the court, in its discretion, may waive the collection and payment of the same, but in making such determination the court shall consider that the purpose of this subpart is to not only promote the rehabilitation of offenders but, insofar as possible, to make the implementation of this subpart self-supporting.