Memory optimized and better way to work with controllers