We have some API that process data from users. User can input some data that causes very high memory consumption and we cannot avoid it. Is there a correct, smart way to organiz