#288: save memory

Resolves #288.