Add optional parameter to memoize conversions. Close #20

As discussed in #19