Optimized data access code.