Add "LOW_MEMORY" option and increase some buffer sizes (bug #1827)