optimized notemap reading to improve performance.