WIP: Static cache \RestfulBase::getAccount to improve performance.

Not profiled properly yet, so I'm not sure it's right.