Optimizing build time

Caching calls from methods that don't change to improve map compilation time