F::app() can be cached, it is used below also.