Initial replacement using ets for tuples for #5