Formatting, aded Persistent<> caching.

Signed-off-by: katlogic <kat@lua.cz>