Configurable memory limit

Moving hardcoded memory limit to configuration as it will depend on
the converter used.

Change-Id: I651c455118f9577e503f8ed1e3849ecea1f2bc65