Merge branch 'enhancement/reduce_memory_consumption' into 'master'

Enhancement/reduce memory consumption

Closes #5

See merge request !4
5 jobs for master in 8 minutes and 30 seconds (queued for 1 second)