Add caching and rewrite some methods
Merge branch 'master' of https://github.com/EvgeniyLitvin/RED