Minor Refactoring

Moved static elements, that do not need to be recalculated every frame
to a more global scale to improve performance.