Optimize memory access; acknowledge ambiguity

Execution time is under 1s now.
Finalize initial refactoring