Enforce Max memory usage