Remove ununsed vars
Often there are action like this:
$result = $this->ApiRequest();
$resultUs = unserialize($result);
$result gets then not used again, but consumes ram. This should get removed.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information