Huge performance boost by reducing redundant function calls. Also CACHING!