Currently refactoring a piece of code that was working well few months ago, but not anticipating the returned data grows larger, which currently consumed 262 MB of memory. U