The state’s attorney for any judicial district may employ one or more detectives to investigate for the purpose of discovering the perpetrators of any crime committed within this state, whenever the penalty for such crime is capital punishment, life imprisonment without the possibility of release or life imprisonment. The expenses incurred in the employment of such detectives shall be paid from the State Treasury on an order from the state’s attorney employing them.