Read duty cycle of a pwm pin on Arduino Mega... ?!

Apart from an exercise in microcontroller masochism, why bother?
It's a pool light controller; I find it very hard to believe it is going to be so RAM-constrained that saving a few bytes is going to make that much difference. Unless you return references to the registers themselves, you may well end up using more RAM.